package com.lemon.secondhandplatform.mode;

import java.io.Serializable;

import cn.bmob.v3.BmobObject;
import cn.bmob.v3.datatype.BmobRelation;

/**
 * 商品
 */
public class Good extends BmobObject implements Serializable {

    //未被预定
    public static final int NOT_BOOKED = 0;
    //已被预定
    public static final int BOOKED = 1;

    //商品名称
    private String name;
    //商品简介
    private String introduction;
    //价格
    private Double price;
    //卖家
    private User seller;
    //商品略缩图地址
    private String thumbnailURL;
    //浏览量
    private Integer pageView = 0;
    //收藏量
    private Integer collection = 0;
    //喜欢
    private BmobRelation likes;
    //喜欢数量
    private Integer likeCounter = 0;
    //是否喜欢
    private transient boolean like;
    //商品状态
    //0：未被预定
    //1：已被预订
    private Integer status = NOT_BOOKED;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public User getSeller() {
        return seller;
    }

    public void setSeller(User seller) {
        this.seller = seller;
    }

    public String getThumbnailURL() {
        return thumbnailURL;
    }

    public void setThumbnailURL(String thumbnailURL) {
        this.thumbnailURL = thumbnailURL;
    }

    public Integer getPageView() {
        return pageView;
    }

    public void setPageView(Integer pageView) {
        this.pageView = pageView;
    }

    public Integer getCollection() {
        return collection;
    }

    public void setCollection(Integer collection) {
        this.collection = collection;
    }

    public BmobRelation getLikes() {
        return likes;
    }

    public void setLikes(BmobRelation likes) {
        this.likes = likes;
    }

    public Integer getLikeCounter() {
        return likeCounter;
    }

    public void setLikeCounter(Integer likeCounter) {
        this.likeCounter = likeCounter;
    }

    public boolean isLike() {
        return like;
    }

    public void setLike(boolean like) {
        this.like = like;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
